﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Member/MerchantMaster.master" AutoEventWireup="true"
    CodeFile="Shop_ProductSale.aspx.cs" Inherits="Member_Shop_ProductSale" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function Show_Tab(name, level, type) {
            window.location.href = "Shop_ProductInStock.aspx"; 
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="bz_keen right">
        <div class="grxixn b">
            <div class="xixzhil">
                <h2 class="xit">
                    商品管理</h2>
            </div>
            <div class="blank">
            </div>
            <div class="baobei thgl">
                <p>
                    <span class="marl0">商品状态：</span>
                    <asp:DropDownList ID="searchProductType" runat="server" AppendDataBoundItems="True"
                        Width="80px">
                        <asp:ListItem Selected="True" Value="-1" Text="所有" />
                        <asp:ListItem Value="1" Text="推荐" />
                        <asp:ListItem Value="0" Text="没有推荐" />
                    </asp:DropDownList>
                    <span>商品名称：</span>
                    <asp:TextBox ID="ProductName" runat="server" Width="200px" />
                </p>
                <p>
                    <span class="marl0">商品类型：</span>
                    <asp:DropDownList ID="ProductType" runat="server" Width="80px">
                        <asp:ListItem Text="全部" Value="-1" />
                        <asp:ListItem Text="一口价" Value="1" />
                        <asp:ListItem Text="团购" Value="3" />
                    </asp:DropDownList>
                    <span>排序方式：</span>
                    <asp:DropDownList ID="show_type" runat="server">
                        <asp:ListItem Text="选择排序方式" Value="-1" Selected="True" />
                        <asp:ListItem Text="上架时间从近到远" Value="1" />
                        <asp:ListItem Text="上架时间从远到近" Value="2" />
                        <asp:ListItem Text="价格从高到低" Value="3" />
                        <asp:ListItem Text="价格从低到高" Value="4" />
                        <asp:ListItem Text="浏览量从高到低" Value="5" />
                        <asp:ListItem Text="浏览量从低到高" Value="6" />
                        <asp:ListItem Text="剩余数量从高到低" Value="7" />
                        <asp:ListItem Text="剩余数量从低到高" Value="8" />
                    </asp:DropDownList>
                    <span class="marl0">&nbsp;&nbsp;</span>
                    <asp:ImageButton ID="QucikSearch" runat="server" OnClick="QucikSearch_Click" ImageUrl="~/Images/search.jpg" />
                </p>
            </div>
            <div class="blank">
            </div>
            <div class="autohei">
                <div class="tuih_tit">
                    <h3 onclick="set('th',1,2)" id="th1" class="hover">
                        出售中的宝贝</h3>
                    <h3 onclick="Show_Tab('th',2,2)" id="th2">
                        下架/仓库宝贝</h3>
                </div>
                <div id="conth1" class="chus1">
                    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemDataBound">
                        <HeaderTemplate>
                            <table>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td width="310">
                                    <span class="left imgbor">
                                        <asp:HyperLink ID="ProductNameUrl2" runat="server" NavigateUrl='<%#"../ShowProduct.aspx?ProductID="+Eval("ProductID") %>'
                                            Target="_blank">
                                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# (Convert.ToString(Eval("ProductSmallImageUrl"))==""?"../Images/show_nopic.gif":"../"+Eval("ProductSmallImageUrl").ToString()) %>'
                                                Height="50px" Width="50px" /></asp:HyperLink></span><p class="pad15 autohei">
                                                    <asp:HyperLink ID="ProductNameUrl" runat="server" Text='<%# Bind("ProductName") %>'
                                                        NavigateUrl='<%#"../ShowProduct.aspx?ProductID="+Eval("ProductID") %>' Target="_blank" /></p>
                                </td>
                                <td width="140">
                                    总库存：<asp:Label ID="Label1" runat="server" Text='<%#Eval("Stocks")%>'></asp:Label><br />
                                    <span class="icon2 gray">
                                        <asp:Label ID="ProductType" runat="server" Text='<%#HKB.Web.Shop.TextFormat.GetProductType(Eval("ProductType").ToString())    %>'
                                            ForeColor="orangered" /></span>
                                </td>
                                <td width="70">
                                    <span class="red">￥
                                        <asp:Label ID="Label2" runat="server" Text='<%#Eval("ProductType").ToString()=="2"?Eval("CurrentPrice"): Eval("StandPrice") %>'></asp:Label></span>
                                </td>
                                <td align="right" width="300">
                                    <a href="#">
                                        <img src="../images/ckxg.jpg" /></a>
                                    <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="return window.confirm('确认要下架入库吗？')"
                                        ImageUrl="~/Images/shanchu.jpg" CommandName="StopSale" OnCommand="Button_Command"
                                        CommandArgument='<%#Eval("ProductID") %>' />
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table></FooterTemplate>
                    </asp:Repeater>
                    <div class="blank">
                    </div>
                    <div class="cp_nete">
                        <ul>
                            <li><a href="#">
                                <asp:LinkButton ID="lbtnFirstPage" runat="server" OnClick="lbtnFirstPage_Click">页首</asp:LinkButton>
                            </a></li>
                            <li><a href="#">
                                <asp:LinkButton ID="lbtnpritPage" runat="server" OnClick="lbtnpritPage_Click">上一页</asp:LinkButton>
                            </a></li>
                            <li><a href="#">
                                <asp:LinkButton ID="lbtnNextPage" runat="server" OnClick="lbtnNextPage_Click">下一页</asp:LinkButton>
                            </a></li>
                            <li><a href="#">
                                <asp:LinkButton ID="lbtnDownPage" runat="server" OnClick="lbtnDownPage_Click">页尾</asp:LinkButton><br />
                            </a></li>
                            <li><a href="#">第<asp:Label ID="labPage" runat="server" Text="Label"></asp:Label>页/共<asp:Label
                                ID="LabCountPage" runat="server" Text="Label"></asp:Label>页</a></li>
                        </ul>
                    </div>
                </div>
                <div id="conth2" class="chus1" style="display: none;">
                    <table>
                        <tr>
                            <td width="310">
                                <span class="left imgbor">
                                    <img src="../images/dd2.jpg" /></span><p class="pad15 autohei">
                                        贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</p>
                            </td>
                            <td width="140">
                                总库存：12530件<br />
                                <span class="icon2 gray">部分型号缺货</span>
                            </td>
                            <td width="70">
                                <span class="red">￥159.00</span>
                            </td>
                            <td align="right" width="300">
                                <a href="#">
                                    <img src="../images/ckxg.jpg" /></a> <a href="#">
                                        <img src="../images/xiajia.jpg" /></a> <a href="#">
                                            <img src="../images/shanchu.jpg" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td width="310">
                                <span class="left imgbor">
                                    <img src="../images/dd2.jpg" /></span><p class="pad15 autohei">
                                        贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</p>
                            </td>
                            <td width="140">
                                总库存：12530件<br />
                                <span class="icon2 gray">部分型号缺货</span>
                            </td>
                            <td width="70">
                                <span class="red">￥159.00</span>
                            </td>
                            <td align="right" width="300">
                                <a href="#">
                                    <img src="../images/ckxg.jpg" /></a> <a href="#">
                                        <img src="../images/xiajia.jpg" /></a> <a href="#">
                                            <img src="../images/shanchu.jpg" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td width="310">
                                <span class="left imgbor">
                                    <img src="../images/dd2.jpg" /></span><p class="pad15 autohei">
                                        贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</p>
                            </td>
                            <td width="140">
                                总库存：12530件<br />
                                <span class="icon2 gray">部分型号缺货</span>
                            </td>
                            <td width="70">
                                <span class="red">￥159.00</span>
                            </td>
                            <td align="right" width="300">
                                <a href="#">
                                    <img src="../images/ckxg.jpg" /></a> <a href="#">
                                        <img src="../images/xiajia.jpg" /></a> <a href="#">
                                            <img src="../images/shanchu.jpg" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td width="310">
                                <span class="left imgbor">
                                    <img src="../images/dd2.jpg" /></span><p class="pad15 autohei">
                                        贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</p>
                            </td>
                            <td width="140">
                                总库存：12530件<br />
                                <span class="icon2 gray">部分型号缺货</span>
                            </td>
                            <td width="70">
                                <span class="red">￥159.00</span>
                            </td>
                            <td align="right" width="300">
                                <a href="#">
                                    <img src="../images/ckxg.jpg" /></a> <a href="#">
                                        <img src="../images/xiajia.jpg" /></a> <a href="#">
                                            <img src="../images/shanchu.jpg" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td width="310">
                                <span class="left imgbor">
                                    <img src="../images/dd2.jpg" /></span><p class="pad15 autohei">
                                        贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</p>
                            </td>
                            <td width="140">
                                总库存：12530件<br />
                                <span class="icon2 gray">部分型号缺货</span>
                            </td>
                            <td width="70">
                                <span class="red">￥159.00</span>
                            </td>
                            <td align="right" width="300">
                                <a href="#">
                                    <img src="../images/ckxg.jpg" /></a> <a href="#">
                                        <img src="../images/xiajia.jpg" /></a> <a href="#">
                                            <img src="../images/shanchu.jpg" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td width="310">
                                <span class="left imgbor">
                                    <img src="../images/dd2.jpg" /></span><p class="pad15 autohei">
                                        贝蒂betty boop女包正品2013新款手提斜挎两用包学院风可爱包包</p>
                            </td>
                            <td width="140">
                                总库存：12530件<br />
                                <span class="icon2 gray">部分型号缺货</span>
                            </td>
                            <td width="70">
                                <span class="red">￥159.00</span>
                            </td>
                            <td align="right" width="300">
                                <a href="#">
                                    <img src="../images/ckxg.jpg" /></a> <a href="#">
                                        <img src="../images/xiajia.jpg" /></a> <a href="#">
                                            <img src="../images/shanchu.jpg" /></a>
                            </td>
                        </tr>
                    </table>
                    <div class="blank">
                    </div>
                    <div class="cp_nete">
                        <ul>
                            <li><a href="#">上一页</a></li>
                            <li><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">下一页</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
